import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DATASCREEN: AppRouteRecordRaw = {
  path: '/data-screen',
  name: 'data-screen',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.data-screen',
    requiresAuth: true,
    icon: 'icon-apps',
    order: 1,
  },
  children: [
    {
      path: 'data-analysis',
      name: 'ScreenDataAnalysis',
      component: () => import('@/views/data-screen/data-analysis/index.vue'),
      meta: {
        locale: '数据分析',
        requiresAuth: true,
        roles: ['admin', 'user'],
      },
    },
    {
      path: 'screen-multi-dimension-data-analysis',
      name: 'ScreenMultiDimensionDataAnalysis',
      component: () =>
        import('@/views/data-screen/multi-dimension-data-analysis/index.vue'),
      meta: {
        locale: '问卷统计',
        requiresAuth: true,
        roles: ['admin', 'user'],
      },
    },
    {
      path: 'test',
      name: 'test',
      component: () => import('@/views/data-screen/test/index.vue'),
      meta: {
        locale: '答者统计',
        requiresAuth: true,
        roles: ['admin', 'user'],
      },
    },
    // {
    //   path: 'screen-group-data',
    //   name: 'ScreenGroupData',
    //   component: () =>
    //       import('@/views/data-screen/group-data/index.vue'),
    //   meta: {
    //     locale: '群组数据',
    //     requiresAuth: true,
    //     roles: ['admin', 'user'],
    //   },
    // },
    {
      path: 'screen-group-data',
      name: 'ScreenGroupData',
      component: () => import('@/views/data-screen/group-data/index.vue'),
      meta: {
        locale: '群组统计',
        requiresAuth: true,
        roles: ['admin', 'user'],
      },
    },
  ],
};

export default DATASCREEN;
